import request from '@/utils/request'

// export default {
  // getPendingTasksList(pageNum, pageSize, status, dateRange) {
  //   if (dateRange===null || dateRange===undefined) {
  //     dateRange=[];
  //   }
  //   return request({
  //     url: `/pendingTasks/queryPendingTasks/${pageNum}/${pageSize}/${status}`,
  //     method: 'POST',
  //     data: dateRange
  //   })
  // },

  export function findAll() {
    return request({
      url: "/leave - applications/findAll",
      method: 'GET',
    })
  }

export function findById(applicationId) {
    return request({
      url: `/leave - applications/findById/${applicationId}`,
      method: 'GET',
    })
  }

export function  save() {
    return request({
      url: "/leave - applications/save",
      method: 'POST',
    })
  }
export function  update(applicationId) {
    return request({
      url: `/leave - applications/update/${applicationId}`,
      method: 'PUT',
    })
  }

export function deleteById(applicationId) {
    return request({
      url: `/leave - applications/deleteById/${applicationId}`,
      method: 'DELETE',
    })
  }
// }



